import React from 'react'
import styles from "../sass/header.module.scss"
import { Menu, Dropdown } from 'antd';
export default function Header() {
    const menu = (
        <Menu>
            <Menu.Item key="0">
                <span>修改密码</span>
            </Menu.Item>
            <Menu.Item key="1">
                <span>退出登陆</span>
            </Menu.Item>

        </Menu>
    );
    return (
        <div>
            <div className={styles.header}>
                <div className={styles.header_title}>智能撰写材料结构化系统</div>
                <Dropdown className={styles.header_username} overlay={menu} trigger={['click']} placement="bottom" arrow>
                    <span>用户名</span>
                </Dropdown>

            </div>
            <div className={styles.hr}></div>
        </div>


    )
}
